package com.tengju.data.infrastructure.persistence.mybatis.mapper.clickhouse.crm;

import com.tengju.data.infrastructure.persistence.mybatis.dataobject.CrmSecAnalysisMDO;
import com.tengju.data.infrastructure.persistence.mybatis.dataobject.UserPullingVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * @author chenhang
 * @Date 2021/3/6
 */
public interface CRMSecAnalysisMapper {

    List<CrmSecAnalysisMDO> listSecAnalysis(@Param("clubId") Long clubId,
                                            @Param("td") String td,
                                            @Param("ytd") String ytd,
                                            @Param("ymtd") String ymtd,
                                            @Param("month") Integer month);

    List<UserPullingVO> listSecPulling(@Param("clubId") Long clubId,
                                       @Param("startDate") LocalDate startDate,
                                       @Param("starLevel") Integer starLevel);

}
